package com.bkbw.live.battle.net.message;

import org.apache.mina.core.session.IoSession;

/**
 * 在游戏中进行传递的网络消息对象,由消息头＋消息体组成
 * @author zhouyou
 *
 */
public class MessageObject {
	private int head;
	private Object data;
	private IoSession session;
	public MessageObject(int head, Object data,IoSession session) {
		super();
		this.head = head;
		this.data = data;
		this.session = session;
	}
	public int getHead() {
		return head;
	}
	public void setHead(int head) {
		this.head = head;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public IoSession getSession() {
		return session;
	}
	public void setSession(IoSession session) {
		this.session = session;
	}
}
